package com.gking.processHarvest.service.Module;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gking.processHarvest.common.Res;
import com.gking.processHarvest.entity.Module;

import java.util.List;

public interface ModuleService extends IService<Module> {


    /**
     * 批量传教模块
     *
     * @param projectId
     * @param list
     * @return
     */
    public Res<String> createModules(String projectId, List<Module> list);

    /**
     * 修改模块信息
     *
     * @param pId
     * @param mId
     * @param name
     * @param desc
     * @return
     */
    public Res<String> updateInfo(String pId, String mId, String name, String desc);


    /**
     * 删除模块
     *
     * @param id
     * @return
     */
    public Res<String> delete(String id);


    /**
     * 获取项目模块
     *
     * @param projectId 项目id
     * @return s
     */
    public Res<List<Module>> getProjectModules(String projectId);
}
